# -*- coding: utf-8 -*-
import json

from odoo import models, fields, api
from odoo.exceptions import UserError
from odoo.tools import float_round, float_compare, float_is_zero


class MrpBomLine(models.Model):
    _inherit = 'mrp.bom.line'
    scrap_rate=fields.Float(string='损耗率(%)')


# class MrpBom(models.Model):
#     _inherit = 'mrp.bom'
#
#     def compute_consume_product_ids(self,qty):
#         for line in self.bom_line_ids:
#